import request from '@/utils/request'

// 查询调度病例详细信息列表
export function listDispatchCase(query) {
  return request({
    url: '/manager/dispatchCase/list',
    method: 'get',
    params: query
  })
}

// 查询调度病例详细信息详细
export function getDispatchCase(dispatchCaseid) {
  return request({
    url: '/manager/dispatchCase/' + dispatchCaseid,
    method: 'get'
  })
}


// 新增调度病例详细信息
export function addDispatchCase(data) {
  return request({
    url: '/manager/dispatchCase',
    method: 'post',
    data: data
  })
}

// 获取gcs评分
export function getGcsAnswer(data) {
  return request({
    url: '/pad/v1/GCS/answer/getAnswer?dispatchId=' + data,
    method: 'post'
    // data: data
  })
}

// 获取NHISS评分
export function getNhissAnswer(data) {
  return request({
    url: '/pad/v1/nhiss/answer/getAnswer?dispatchId=' + data,
    method: 'post'
    // data: data
  })
}

// 修改调度病例详细信息
export function updateDispatchCase(data) {
  return request({
    url: '/manager/dispatchCase',
    method: 'put',
    data: data
  })
}

// 删除调度病例详细信息
export function delDispatchCase(dispatchCaseid) {
  return request({
    url: '/manager/dispatchCase/' + dispatchCaseid,
    method: 'delete'
  })
}

// 导出调度病例详细信息
export function exportDispatchCase(query) {
  return request({
    url: '/manager/dispatchCase/export',
    method: 'get',
    params: query
  })
}
// 查询调度车载设备记录信息详细
export function getDispatchDeviceinfo(dispatchCaseID) {
  return request({
    url: '/manager/dispatchDevice/dispatch/' + dispatchCaseID,
    method: 'get'
  })
}